package fr.umlv.m2.jee.pmlv.service.cursus;

import java.io.Serializable;
import java.util.List;

import fr.umlv.m2.jee.pmlv.persistence.cursus.Cursus;
import fr.umlv.m2.jee.pmlv.persistence.cursus.Specialty;
import fr.umlv.m2.jee.pmlv.persistence.cursus.SpecialtySubject;
import fr.umlv.m2.jee.pmlv.persistence.subject.Subject;
import java.util.Set;

public class DisplaySpecialty implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Specialty specialty;
	
	public DisplaySpecialty(Specialty specialty) {
		this.specialty = specialty;
	}

	
	/**
	 * Sets the name of the Specialty.
	 * @param name the String that is to be name of the specialty.
	 */
	public void setName(String name) {
		specialty.setName(name);
	}

	/**
	 * Returns the name of the Specialty.
	 * @return the name of the Specialty.
	 */
	public String getName() {
		return specialty.getName();
	}

	/**
	 * Sets the description of the Specialty.
	 * @param description the String that is to be the description of the
	 * 		  specialty.
	 */
	public void setDescription(String description) {
		specialty.setDescription(description);
	}

	/**
	 * Returns the description of the Specialty.
	 * @return the description of the specialty.
	 */
	public String getDescription() {
		return specialty.getDescription();
	}

	/**
	 * Sets the set of cursus of the Specialty.
	 * @param cursus
	 */
	public void setCursus(Cursus cursus) {
		specialty.setCursus(cursus);
	}

	/**
	 * Returns the Cursus associated by the Specialty.
	 * @return the {@link Cursus} associated by the Specialty.
	 */
	public Cursus getCursus() {
		return specialty.getCursus();
	}

	/**
	 * Sets the List of subject which are in this specialty.
	 * @param subjects the list of {@link Subject} that is to be presents in this specialty.
	 */
	public void setSpecialtySubject(Set<SpecialtySubject> subjects) {
		specialty.setSpecialtySubject(subjects);
	}

	/**
	 * Returns the list of subjects which are in this specialty.
	 * @return the list of {@link Specialty} which are in this specialty.
	 */
	public Set<SpecialtySubject> getSpecialtySubject() {
		return specialty.getSpecialtySubject();
	}

}
